import articleModel from './articleModel';

export default class articleCategories {
  constructor(obj: any) {
    this.id = obj.id;
    this.name = obj.name;
    this.parent_id = obj.parent_id;
    this.children = obj.children;
  }

  id: number;
  parent_id: number;
  name: string;
  page: number = 1;
  index: number;
  articles: Array<articleModel> = [];
  children: Array<articleCategories>;
}